#include "ScoreCounter.h"

CScoreCounter::CScoreCounter():iScore(0)
    {
    }

void CScoreCounter::ConstructL()
    {
    }

CScoreCounter* CScoreCounter::NewL()
    {
    CScoreCounter* self = new (ELeave)CScoreCounter;
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();
    return self;
    }

CScoreCounter::~CScoreCounter()
    {
    
    }

TInt CScoreCounter::GetScore()
    {
    return iScore;
    }

void CScoreCounter::SetScore( TInt aScore )
    {
    iScore = aScore;
    }

TInt CScoreCounter::IncScore( TInt aDelta )
    {
    iScore += aDelta;
    return iScore;
    }

void CScoreCounter::GameChanged( CEngine* /*aGame*/ )
    {
    
    }

void CScoreCounter::GamePaused( CEngine* /*aGame*/ )
    {
    
    }

void CScoreCounter::GameOver( CEngine* /*aGame*/ )
    {
    
    }

void CScoreCounter::BallHitsLine( CEngine* /*aGame*/ )
    {
    IncScore();
    }

